package io.zztec.service.impl;

import io.zztec.mapper.CityMapper;
import io.zztec.domain.City;
import io.zztec.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wa on 15-11-19.
 */
@Service
public class CityServiceImpl implements CityService {

    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> getAllCity() {
        return cityMapper.getAllCity();
    }

    @Override
    public City getCityById(long id) {
        return cityMapper.getCityById(id);
    }
}
